/**
 * OPay Inc.
 * Copyright (c) 2016-2022 All Rights Reserved.
 */
package cc.dd.marketing.api.request.base;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 活动请求基类
 *
 * @author sufeng.dong
 */
@Getter
@Setter
@ToString
public abstract class AbstractBaseRequest implements BaseRequest, Serializable {

    /**
     * 参与活动的用户ID
     */
    @NotBlank
    private String userId;
    /**
     * 参与渠道
     */
    private String channelNo = "inner";

    public AbstractBaseRequest(String userId, String channelNo) {
        this.userId = userId;
        this.channelNo = channelNo;
    }

    public AbstractBaseRequest() {
    }
}
